// $Id: config.hpp 2 2009-09-02 08:47:42Z joseph2002 $
/*
 * Copyright 2008 Joseph Wu
 * Distributed under the Boost Software License, Version 1.0.
 * (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
 *
 * For more information, see http://xpcomplus.sourceforge.net
 */

//
// Every code which uses the library should include this file first.
//

#ifndef XPCOM_CONFIG_HPP
#define XPCOM_CONFIG_HPP

//
// XPCOM_USER_CONFIG
//
// By default, library users can modify <xpcom/config/user.hpp> to customize
// some behaviors of the library.  Define this to set the user config header to
// another file.
//
// Note: This should be defined by compile commands (-D).
//

//
// XPCOM_NO_USER_CONFIG
//
// Define this to disable all user config options.
//
// Note: This should be defined by compile commands (-D).
//

// If we don't have a user config, then use the default location
#if !defined(XPCOM_USER_CONFIG) && !defined(XPCOM_NO_USER_CONFIG)
#  define XPCOM_USER_CONFIG <xpcom/config/user.hpp>
#endif
// Include user config file first
#ifdef XPCOM_USER_CONFIG
#  include XPCOM_USER_CONFIG
#endif

// Include boost config file
#include <boost/config.hpp>

// Include our config files
#include <xpcom/config/platform.hpp>
#include <xpcom/config/compiler.hpp>
#include <xpcom/config/endian.hpp>
#include <xpcom/config/wchar.hpp>
#include <xpcom/config/api.hpp>
#include <xpcom/config/decl.hpp>

#endif // XPCOM_CONFIG_HPP
